package com.shiguiwu.mogu.controller;

import com.shiguiwu.mogu.entity.Banner;
import com.shiguiwu.mogu.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description: tr
 * @author: stone
 * @date: Created by 2020/12/23 23:01
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.mogu.controller
 */
@RestController
public class BannerController {
    @Autowired
    private BannerService bannerService;

    @GetMapping("/find")
    public List<Banner> find(Integer limit,Integer offset) {
        return bannerService.page(limit, offset);
    }
}
